package com.ruoyi.nucleicacid.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nucleicacid.mapper.TimeoutMapper;
import com.ruoyi.nucleicacid.domain.Timeout;
import com.ruoyi.nucleicacid.service.ITimeoutService;

/**
 * 核酸任务超时Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-18
 */
@Service
public class TimeoutServiceImpl implements ITimeoutService 
{
    @Autowired
    private TimeoutMapper timeoutMapper;

    /**
     * 查询核酸任务超时
     * 
     * @param id 核酸任务超时主键
     * @return 核酸任务超时
     */
    @Override
    public Timeout selectTimeoutById(Long id)
    {
        return timeoutMapper.selectTimeoutById(id);
    }

    /**
     * 查询核酸任务超时列表
     * 
     * @param timeout 核酸任务超时
     * @return 核酸任务超时
     */
    @Override
    public List<Timeout> selectTimeoutList(Timeout timeout)
    {
        return timeoutMapper.selectTimeoutList(timeout);
    }

    /**
     * 新增核酸任务超时
     * 
     * @param timeout 核酸任务超时
     * @return 结果
     */
    @Override
    public int insertTimeout(Timeout timeout)
    {
        return timeoutMapper.insertTimeout(timeout);
    }

    /**
     * 修改核酸任务超时
     * 
     * @param timeout 核酸任务超时
     * @return 结果
     */
    @Override
    public int updateTimeout(Timeout timeout)
    {
        return timeoutMapper.updateTimeout(timeout);
    }

    /**
     * 批量删除核酸任务超时
     * 
     * @param ids 需要删除的核酸任务超时主键
     * @return 结果
     */
    @Override
    public int deleteTimeoutByIds(Long[] ids)
    {
        return timeoutMapper.deleteTimeoutByIds(ids);
    }

    /**
     * 删除核酸任务超时信息
     * 
     * @param id 核酸任务超时主键
     * @return 结果
     */
    @Override
    public int deleteTimeoutById(Long id)
    {
        return timeoutMapper.deleteTimeoutById(id);
    }
}
